package com.lablzh.gdxy.repository.admin;

import com.lablzh.gdxy.entity.admin.Department;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface DepartmentRepository extends JpaRepository<Department,Integer> {
    Department findByName(String name);

    List<Department> findAllByCollege(String college);

}
